
<!DOCTYPE html>
<!--[if IE 9]>         <html class="ie9 no-focus" lang="zh"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-focus" lang="zh"> <!--<![endif]-->
<head>
    <meta charset="utf-8">

    <title>添加商品 | 海豚PHP - DolphinPHP</title>

    <meta name="description" content="">
    <meta name="author" content="caiweiming">
    <meta name="robots" content="noindex, nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,user-scalable=0">

    <!-- Icons -->
    <!-- The following icons can be replaced with your own, they are used by desktop and mobile browsers -->
    <link rel="shortcut icon" href="/static/admin/img/favicons/favicon.ico">

    <link rel="icon" type="image/png" href="/static/admin/img/favicons/favicon-16x16.png" sizes="16x16">
    <link rel="icon" type="image/png" href="/static/admin/img/favicons/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="/static/admin/img/favicons/favicon-96x96.png" sizes="96x96">
    <link rel="icon" type="image/png" href="/static/admin/img/favicons/favicon-160x160.png" sizes="160x160">
    <link rel="icon" type="image/png" href="/static/admin/img/favicons/favicon-192x192.png" sizes="192x192">

    <link rel="apple-touch-icon" sizes="57x57" href="/static/admin/img/favicons/apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="60x60" href="/static/admin/img/favicons/apple-touch-icon-60x60.png">
    <link rel="apple-touch-icon" sizes="72x72" href="/static/admin/img/favicons/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="76x76" href="/static/admin/img/favicons/apple-touch-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="114x114" href="/static/admin/img/favicons/apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="120x120" href="/static/admin/img/favicons/apple-touch-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="144x144" href="/static/admin/img/favicons/apple-touch-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="152x152" href="/static/admin/img/favicons/apple-touch-icon-152x152.png">
    <link rel="apple-touch-icon" sizes="180x180" href="/static/admin/img/favicons/apple-touch-icon-180x180.png">
    <!-- END Icons -->

    <!-- Stylesheets -->
    <!-- Page JS Plugins CSS -->
    <link rel="stylesheet" href="/static/libs/select2/select2.min.css?v=20180327"><link rel="stylesheet" href="/static/libs/select2/select2-bootstrap.min.css?v=20180327">            <link rel="stylesheet" href="/static/libs/webuploader/webuploader.css?v=20180327">


    <!-- Bootstrap and OneUI CSS framework -->
    <link rel="stylesheet" href="/static/libs/sweetalert/sweetalert.min.css?v=20180327">
    <link rel="stylesheet" href="/static/libs/magnific-popup/magnific-popup.min.css?v=20180327">
    <link rel="stylesheet" href="/static/admin/css/bootstrap.min.css?v=20180327">
    <link rel="stylesheet" href="/static/admin/css/oneui.css?v=20180327">
    <link rel="stylesheet" href="/static/admin/css/dolphin.css?v=20180327" id="css-main">
    <link rel="stylesheet" href="/static/libs/viewer/viewer.min.css?v=20180327">
    <link rel="stylesheet" id="css-theme" href="/static/admin/css/themes/default.min.css?v=20180327">

    <!--页面css-->



    <!-- END Stylesheets -->

    <!--插件css钩子-->

    <!--自定义css-->
    <link rel="stylesheet" href="/static/admin/css/custom.css?v=20180327">
    <script>
        // url
        var dolphin = {
            'top_menu_url': '/admin.php/admin/ajax/getsidebarmenu.html',
            'theme_url': '/admin.php/admin/ajax/settheme.html',
            'jcrop_upload_url': '/admin.php/admin/attachment/upload/dir/images/from/jcrop/module/admin.html',
            'editormd_upload_url': '/admin.php/admin/attachment/upload/dir/images/from/editormd/module/admin.html',
            'editormd_mudule_path': '/static/libs/editormd/lib/',
            'ueditor_upload_url': '/admin.php/admin/attachment/upload/dir/images/from/ueditor/module/admin.html',
            'wangeditor_upload_url': '/admin.php/admin/attachment/upload/dir/images/from/wangeditor/module/admin.html',
            'wangeditor_emotions': "/static/libs/wang-editor/emotions.data",
            'ckeditor_img_upload_url': '/admin.php/admin/attachment/upload/dir/images/from/ckeditor/module/admin.html',
            'WebUploader_swf': '/static/libs/webuploader/Uploader.swf',
            'file_upload_url': '/admin.php/admin/attachment/upload/dir/files/module/admin.html',
            'image_upload_url': '/admin.php/admin/attachment/upload/dir/images/module/admin.html',
            'upload_check_url': '/admin.php/admin/ajax/check.html',
            'get_level_data': '/admin.php/admin/ajax/getleveldata.html',
            'quick_edit_url': '/admin.php/admin/goods/quickedit.html',
            'aside_edit_url': '/admin.php/admin/system/quickedit.html',
            'triggers': [], // 触发器集合
            'field_hide': '', // 需要隐藏的字段
            'field_values': '',
            'validate': '', // 验证器
            'validate_fields': '', // 验证字段
            'search_field': '', // 搜索字段
            // 字段过滤
            '_filter': '',
            '_filter_content': '',
            '_field_display': '',
            '_field_clear': [],
            'get_filter_list': '/admin.php/admin/ajax/getfilterlist.html',
            'curr_url': '/admin.php/admin/goods/add/group/tab2.html',
            'curr_params': {"group":"tab2"},
            'layer': {"type":2,"area":["80%","90%"],"shadeClose":true,"isOutAnim":false,"anim":-1}        };
    </script>
</head>
<body>
<!-- Page Container -->
<div id="page-container" class="sidebar-l sidebar-o side-scroll header-navbar-fixed ">
    <!-- Side Overlay-->

    <aside id="side-overlay">
        <!-- Side Overlay Scroll Container -->
        <div id="side-overlay-scroll">
            <!-- Side Header -->
            <div class="side-header side-content">
                <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                <button class="btn btn-default pull-right" type="button" data-toggle="layout" data-action="side_overlay_close">
                    <i class="fa fa-times"></i>
                </button>
                <span>
                    <img class="img-avatar img-avatar32" src="/static/admin/img/avatar.jpg" alt="">
                    <span class="font-w600 push-10-l">admin</span>
                </span>
            </div>
            <!-- END Side Header -->
            <!--侧栏-->
            <!-- Side Content -->
            <div class="side-content remove-padding-t" id="aside">
                <!-- Side Overlay Tabs -->
                <div class="block pull-r-l border-t">
                    <div class="block-content">
                        <div class="block pull-r-l">
                            <div class="block-header bg-gray-lighter">
                                <ul class="block-options">
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="content_toggle"></button>
                                    </li>
                                </ul>
                                <h3 class="block-title">系统设置</h3>
                            </div>
                            <div class="block-content">
                                <div class="form-bordered">
                                    <div class="form-group">
                                        <div class="row">
                                            <div class="col-xs-8">
                                                <div class="font-s13 font-w600">站点开关</div>
                                                <div class="font-s13 font-w400 text-muted">站点关闭后将不能访问</div>
                                            </div>
                                            <div class="col-xs-4 text-right">
                                                <label class="css-input switch switch-sm switch-primary push-10-t">
                                                    <input type="checkbox" data-table="b50d2a4d" data-id="1" data-field="value" checked=""><span></span>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- END Side Overlay Tabs -->
            </div>
            <!-- END Side Content -->
        </div>
        <!-- END Side Overlay Scroll Container -->
    </aside>

    <!-- END Side Overlay -->

    <!-- Sidebar -->

    <nav id="sidebar">
        <!-- Sidebar Scroll Container -->
        <div id="sidebar-scroll">
            <!-- Sidebar Content -->
            <!-- Adding .sidebar-mini-hide to an element will hide it when the sidebar is in mini mode -->
            <div class="sidebar-content">
                <!-- Side Header -->
                <div class="side-header side-content bg-white-op dolphin-header">
                    <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                    <button class="btn btn-link text-gray pull-right hidden-md hidden-lg" type="button" data-toggle="layout" data-action="sidebar_close">
                        <i class="fa fa-times"></i>
                    </button>
                    <!-- Themes functionality initialized in App() -> uiHandleTheme() -->
                    <div class="btn-group pull-right">
                        <button class="btn btn-link text-gray dropdown-toggle" data-toggle="dropdown" type="button">
                            <i class="si si-drop"></i>
                        </button>
                        <ul class="dropdown-menu dropdown-menu-right font-s13 sidebar-mini-hide">
                            <li >
                                <a data-toggle="theme" data-theme="modern" data-css="/static/admin/css/themes/modern.min.css" tabindex="-1" href="javascript:void(0)">
                                    <i class="fa fa-circle text-modern pull-right"></i> <span class="font-w600">Modern</span>
                                </a>
                            </li>
                            <li >
                                <a data-toggle="theme" data-theme="amethyst" data-css="/static/admin/css/themes/amethyst.min.css" tabindex="-1" href="javascript:void(0)">
                                    <i class="fa fa-circle text-amethyst pull-right"></i> <span class="font-w600">Amethyst</span>
                                </a>
                            </li>
                            <li >
                                <a data-toggle="theme" data-theme="city" data-css="/static/admin/css/themes/city.min.css" tabindex="-1" href="javascript:void(0)">
                                    <i class="fa fa-circle text-city pull-right"></i> <span class="font-w600">City</span>
                                </a>
                            </li>
                            <li >
                                <a data-toggle="theme" data-theme="flat" data-css="/static/admin/css/themes/flat.min.css" tabindex="-1" href="javascript:void(0)">
                                    <i class="fa fa-circle text-flat pull-right"></i> <span class="font-w600">Flat</span>
                                </a>
                            </li>
                            <li >
                                <a data-toggle="theme" data-theme="smooth" data-css="/static/admin/css/themes/smooth.min.css" tabindex="-1" href="javascript:void(0)">
                                    <i class="fa fa-circle text-smooth pull-right"></i> <span class="font-w600">Smooth</span>
                                </a>
                            </li>
                            <li class="active">
                                <a data-toggle="theme" data-theme="default" tabindex="-1" href="javascript:void(0)">
                                    <i class="fa fa-circle text-default pull-right"></i> <span class="font-w600">Default</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <a class="h5 text-white" href="/admin.php/admin/index/index.html">
                        <img src="/static/admin/img/logo.png" class="logo" alt="Dolphin PHP">
                        <img src="/static/admin/img/logo-text.png" class="logo-text sidebar-mini-hide" alt="Dolphin PHP">
                    </a>
                </div>
                <!-- END Side Header -->

                <!-- Side Content -->
                <div class="side-content" id="sidebar-menu">
                    <ul class="nav-main" id="nav-236">
                        <li class="open">
                            <a class="active" href="/admin.php/admin/goods_category/index.html" target="_self"><i class="fa fa-fw fa-sitemap"></i><span class="sidebar-mini-hide">商品管理</span></a>
                            <ul>
                                <li>
                                    <a  href="/admin.php/admin/goods_category/index.html" target="_self"><i class=""></i>分类列表</a>
                                </li>
                                <li>
                                    <a  href="/admin.php/admin/brand/index.html" target="_self"><i class=""></i>品牌管理</a>
                                </li>
                                <li>
                                    <a class="active" href="/admin.php/admin/goods/index.html" target="_self"><i class=""></i>商品列表</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <!-- END Side Content -->
            </div>
            <!-- Sidebar Content -->
        </div>
        <!-- END Sidebar Scroll Container -->
    </nav>

    <!-- END Sidebar -->

    <!-- Header -->

    <header id="header-navbar" class="content-mini content-mini-full">
        <!-- Header Navigation Right -->
        <ul class="nav-header pull-right">
            <li>
                <div class="btn-group">
                    <button class="btn btn-default btn-image dropdown-toggle" data-toggle="dropdown" type="button">
                        <img src="/static/admin/img/avatar.jpg" alt="admin">
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu dropdown-menu-right">
                        <li class="dropdown-header">admin (超级管理员)</li>
                        <li>
                            <a tabindex="-1" href="/admin.php/admin/index/profile.html">
                                <i class="si si-settings pull-right"></i>个人设置
                            </a>
                        </li>
                        <li>
                            <a tabindex="-1" href="/admin.php/admin/message/index.html">
                                <i class="si si-envelope-open pull-right"></i><span class="badge badge-primary pull-right">0</span>消息中心
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a tabindex="-1" href="/admin.php/user/publics/signout.html">
                                <i class="si si-logout pull-right"></i>退出帐号
                            </a>
                        </li>
                    </ul>
                </div>
            </li>
            <li>
                <a class="btn btn-default ajax-get" href="/admin.php/admin/index/wipecache.html" data-toggle="tooltip" data-placement="bottom" data-original-title="清空缓存">
                    <i class="fa fa-trash"></i>
                </a>
            </li>
            <li>
                <a class="btn btn-default" href="/index.php" target="_blank" data-toggle="tooltip" data-placement="bottom" data-original-title="打开前台">
                    <i class="fa fa-external-link-square"></i>
                </a>
            </li>
            <li>
                <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                <button class="btn btn-default" data-toggle="layout" data-action="side_overlay_toggle" title="侧边栏" type="button">
                    <i class="fa fa-tasks"></i>
                </button>
            </li>
        </ul>
        <!-- END Header Navigation Right -->

        <!-- Header Navigation Left -->
        <ul class="nav nav-pills pull-left">
            <li class="hidden-md hidden-lg">
                <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                <a href="javascript:void(0)" data-toggle="layout" data-action="sidebar_toggle"><i class="fa fa-navicon"></i></a>
            </li>
            <li class="hidden-xs hidden-sm">
                <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                <a href="javascript:void(0)" title="打开/关闭左侧导航" data-toggle="layout" data-action="sidebar_mini_toggle"><i class="fa fa-bars"></i></a>
            </li>
            <li class="hidden-xs hidden-sm active">
                <a href="javascript:void(0);" data-module-id="236" data-module="admin" data-controller="goods_category" target="_self" class="top-menu"><i class="fa fa-fw fa-briefcase"></i> 商城</a>
            </li>
            <li class="hidden-xs hidden-sm ">
                <a href="javascript:void(0);" data-module-id="1" data-module="admin" data-controller="index" target="_self" class="top-menu"><i class="fa fa-fw fa-home"></i> 首页</a>
            </li>
            <li class="hidden-xs hidden-sm ">
                <a href="javascript:void(0);" data-module-id="4" data-module="admin" data-controller="system" target="_self" class="top-menu"><i class="fa fa-fw fa-gear"></i> 系统</a>
            </li>
            <li class="hidden-xs hidden-sm ">
                <a href="javascript:void(0);" data-module-id="68" data-module="user" data-controller="index" target="_self" class="top-menu"><i class="fa fa-fw fa-user"></i> 用户</a>
            </li>
            <li>
                <!-- Opens the Apps modal found at the bottom of the page, before including JS code -->
                <a href="#" data-toggle="modal" data-target="#apps-modal"><i class="si si-grid"></i></a>
            </li>
        </ul>
        <!-- END Header Navigation Left -->
    </header>

    <!-- END Header -->

    <!-- Main Container -->
    <main id="main-container">
        <!-- Page Header -->

        <div class="bg-gray-lighter">
            <ol class="breadcrumb">
                <li><i class="fa fa-map-marker"></i></li>
                <li><a class="link-effect" href="/admin.php/admin/goods_category/index.html">商城</a></li>
                <li><a class="link-effect" href="/admin.php/admin/goods_category/index.html">商品管理</a></li>
                <li><a class="link-effect" href="/admin.php/admin/goods/index.html">商品列表</a></li>
                <li><a class="link-effect" href="javascript:void(0);">添加</a></li>
            </ol>
        </div>

        <!-- END Page Header -->

        <!-- Page Content -->
        <div class="content">

            <div class="row">
                <div class="col-md-12">
                    <div class="block">
                        <div class="block-header bg-gray-lighter">
                            <ul class="block-options">
                                <li>
                                    <button type="button" class="page-reload"><i class="si si-refresh"></i></button>
                                </li>
                                <li>
                                    <button type="button" data-toggle="block-option" data-action="fullscreen_toggle"></button>
                                </li>
                            </ul>
                            <h3 class="block-title">添加商品</h3>
                        </div>
                        <div class="tab-content">
                            <div class="tab-pane active">
                                <div class="block-content">
                                    <form class="form-builder row" name="form-builder" action="/admin.php/admin/goods/add.html" method="post">
                                        <input type="hidden" name="__token__" value="37542d1a59152f36db0e9c738a148148" />
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_sort">
                                            <label class="col-xs-12" for="sort">排序</label>
                                            <div class="col-sm-12">
                                                <input class="form-control" type="text" id="sort" name="sort" value="100" placeholder="请输入排序" >
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_name">
                                            <label class="col-xs-12" for="name">商品名称</label>
                                            <div class="col-sm-12">
                                                <input class="form-control" type="text" id="name" name="name" value="" placeholder="请输入商品名称" >
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_remark">
                                            <label class="col-xs-12" for="remark">商品简介</label>
                                            <div class="col-xs-12">
                                                <textarea class="form-control" id="remark" rows="2" name="remark" placeholder="请输入商品简介"></textarea>
                                            </div>
                                        </div>
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_cate_id">
                                            <label class="col-xs-12" for="cate_id">商品分类</label>
                                            <div class="col-sm-12">
                                                <select class="js-select2 form-control" id="cate_id" name="cate_id" data-allow-clear="true" data-placeholder="请选择一项" >
                                                    <option></option>
                                                    {foreach name='cate_list' item='v'}
                                                    <option value="{$v['id']}">{$v['name']}</option>
                                                    {/foreach}
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_brand_id">
                                            <label class="col-xs-12" for="brand_id">商品品牌</label>
                                            <div class="col-sm-12">
                                                <select class="js-select2 form-control" id="brand_id" name="brand_id" data-allow-clear="true" data-placeholder="请选择一项" >
                                                    <option></option>
                                                    {foreach name='brand_list' item='v'}
                                                    <option value="{$v['id']}">{$v['name']}</option>
                                                    {/foreach}
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_market_price">
                                            <label class="col-xs-12" for="market_price">市场价</label>
                                            <div class="col-sm-12">
                                                <input class="form-control" type="text" id="market_price" name="market_price" value="0.00" placeholder="请输入市场价" >
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_shop_price">
                                            <label class="col-xs-12" for="shop_price">本店售价</label>
                                            <div class="col-sm-12">
                                                <input class="form-control" type="text" id="shop_price" name="shop_price" value="" placeholder="请输入本店售价" >
                                            </div>
                                        </div>
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_commission">
                                            <label class="col-xs-12" for="commission">佣金</label>
                                            <div class="col-sm-12">
                                                <input class="form-control" type="text" id="commission" name="commission" value="" placeholder="请输入佣金" >
                                            </div>
                                        </div>
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_postage">
                                            <label class="col-xs-12" for="commission">邮费</label>
                                            <div class="col-sm-12">
                                                <input class="form-control" type="text" id="postage" name="postage" value="0.00" placeholder="请输入邮费" >
                                                <div class="help-block">邮费为0则为包邮</div>
                                            </div>
                                        </div>
                                        <div id="spec_list">
                                            <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_spec">
                                                <label class="col-xs-12" >商品规格:</label>
                                                <div class="col-xs-3">
                                                    <input class="form-control" type="text" name="spec_name[]" placeholder="规格名称">
                                                </div>
                                                <div class="col-xs-3">
                                                    <input class="form-control" type="text" name="spec_price[]" placeholder="价格">
                                                </div>
                                                <div class="col-xs-2">
                                                    <a href="javascript:void (0);" class="btn btn-info btn-sm" id="add_spec">添加</a>
                                                </div>
                                            </div>

                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_original_img">
                                            <label class="col-xs-12" for="original_img">图片</label>
                                            <div class="col-xs-12 js-upload-images">
                                                <div id="file_list_original_img" class="uploader-list">
                                                </div>
                                                <div class="clearfix"></div>
                                                <input type="hidden" name="original_img" data-multiple="true" data-watermark='' data-thumb='' data-size="204800" data-ext='gif,jpg,jpeg,bmp,png' id="original_img" value="">
                                                <div id="picker_original_img">上传多张图片</div>
                                                <div class="help-block">图片大小在200kb以内</div>
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_store_num">
                                            <label class="col-xs-12" for="store_num">库存</label>
                                            <div class="col-sm-12">

                                                <input class="form-control" type="text" id="store_num" name="store_num" value="1" placeholder="请输入库存" >

                                            </div>
                                        </div>

                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_sell_num">
                                            <label class="col-xs-12" for="sell_num">销量</label>
                                            <div class="col-sm-12">

                                                <input class="form-control" type="text" id="sell_num" name="sell_num" value="0" placeholder="请输入销量" >

                                            </div>
                                        </div>

                                        <div class="form-group col-lg-2 col-md-2 col-sm-2 col-xs-2 " id="form_group_is_sell">
                                            <label class="col-xs-12" for="is_sell">上架</label>
                                            <div class="col-sm-12">
                                                <label class="css-input switch switch-sm switch-primary switch-rounded " title="开启/关闭">
                                                    <input type="checkbox" name="is_sell" id="is_sell"  ><span></span>
                                                </label>
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-2 col-md-2 col-sm-2 col-xs-2 " id="form_group_is_hot">
                                            <label class="col-xs-12" for="is_hot">热卖</label>
                                            <div class="col-sm-12">
                                                <label class="css-input switch switch-sm switch-primary switch-rounded " title="开启/关闭">
                                                    <input type="checkbox" name="is_hot" id="is_hot"  ><span></span>
                                                </label>
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-2 col-md-2 col-sm-2 col-xs-2 " id="form_group_is_rec">
                                            <label class="col-xs-12" for="is_rec">推荐</label>
                                            <div class="col-sm-12">
                                                <label class="css-input switch switch-sm switch-primary switch-rounded " title="开启/关闭">
                                                    <input type="checkbox" name="is_rec" id="is_rec"  ><span></span>
                                                </label>
                                            </div>
                                        </div>

                                        <div class="form-group col-lg-2 col-md-2 col-sm-2 col-xs-2 " id="form_group_is_new">
                                            <label class="col-xs-12" for="is_new">新品</label>
                                            <div class="col-sm-12">
                                                <label class="css-input switch switch-sm switch-primary switch-rounded " title="开启/关闭">
                                                    <input type="checkbox" name="is_new" id="is_new"  ><span></span>
                                                </label>
                                            </div>
                                        </div>
                                        <div class="form-group col-lg-2 col-md-2 col-sm-2 col-xs-2 " id="form_group_virtual">
                                            <label class="col-xs-12" for="virtual">虚拟</label>
                                            <div class="col-sm-12">
                                                <label class="css-input switch switch-sm switch-primary switch-rounded " title="开启/关闭">
                                                    <input type="checkbox" name="virtual" id="virtual"  ><span></span>
                                                </label>
                                            </div>
                                        </div>
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_use_integral">
                                            <label class="col-xs-12" for="sell_num">兑换需要积分</label>
                                            <div class="col-sm-12">

                                                <input class="form-control" type="text" id="use_integral" name="use_integral" value="0" placeholder="请输入销量" >

                                            </div>
                                        </div>
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_get_integral">
                                            <label class="col-xs-12" for="sell_num">购买获得积分</label>
                                            <div class="col-sm-12">

                                                <input class="form-control" type="text" id="get_integral" name="get_integral" value="0" placeholder="请输入销量" >

                                            </div>
                                        </div>
                                        <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 " id="form_group_content">
                                            <label class="col-xs-12" for="content">商品详情</label>
                                            <div class="col-xs-12">
                                                <script id="content" class="js-ueditor" name="content" type="text/plain"></script>
                                            </div>
                                        </div>
                                        <div class="form-group col-md-12 col-xs-12">
                                            <div class="col-xs-12">
                                                <button class="btn btn-minw btn-primary ajax-post" target-form="form-builder" type="submit">
                                                    提交                                        </button>
                                                <button class="btn btn-default" type="button" onclick="javascript:history.back(-1);return false;">
                                                    返回                                        </button>


                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
        <!-- END Page Content -->
    </main>
    <!-- END Main Container -->

    <!-- Footer -->
    <footer id="page-footer" class="content-mini content-mini-full font-s12 bg-gray-lighter clearfix">
        <div class="pull-right">
            Crafted with <i class="fa fa-heart text-city"></i> by <a class="font-w600" href="http://www.zrthink.com" target="_blank">河源市卓锐科技有限公司</a>
        </div>
        <div class="pull-left">
            <a class="font-w600" href="http://www.dolphinphp.com" target="_blank">DolphinPHP 1.3.1</a> &copy; <span class="js-year-copy"></span>
        </div>
    </footer>
    <!-- END Footer -->
</div>
<!-- END Page Container -->

<!-- Apps Modal -->
<!-- Opens from the button in the header -->
<div class="modal fade" id="apps-modal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dialog-top">
        <div class="modal-content">
            <!-- Apps Block -->
            <div class="block block-themed block-transparent">
                <div class="block-header bg-primary-dark">
                    <ul class="block-options">
                        <li>
                            <button data-dismiss="modal" type="button"><i class="si si-close"></i></button>
                        </li>
                    </ul>
                    <h3 class="block-title">所有模块</h3>
                </div>
                <div class="block-content">
                    <div class="row text-center">
                        <div class="col-xs-6 col-sm-3">
                            <a class="block block-rounded top-menu" href="javascript:void(0);" data-module-id="236" data-module="admin" data-controller="goods_category" target="_self">
                                <div class="block-content text-white bg-primary">
                                    <i class="fa fa-fw fa-briefcase fa-2x"></i>
                                    <div class="font-w600 push-15-t push-15">商城</div>
                                </div>
                            </a>
                        </div>
                        <div class="col-xs-6 col-sm-3">
                            <a class="block block-rounded top-menu" href="javascript:void(0);" data-module-id="1" data-module="admin" data-controller="index" target="_self">
                                <div class="block-content text-white bg-primary-dark">
                                    <i class="fa fa-fw fa-home fa-2x"></i>
                                    <div class="font-w600 push-15-t push-15">首页</div>
                                </div>
                            </a>
                        </div>
                        <div class="col-xs-6 col-sm-3">
                            <a class="block block-rounded top-menu" href="javascript:void(0);" data-module-id="4" data-module="admin" data-controller="system" target="_self">
                                <div class="block-content text-white bg-primary-dark">
                                    <i class="fa fa-fw fa-gear fa-2x"></i>
                                    <div class="font-w600 push-15-t push-15">系统</div>
                                </div>
                            </a>
                        </div>
                        <div class="col-xs-6 col-sm-3">
                            <a class="block block-rounded top-menu" href="javascript:void(0);" data-module-id="68" data-module="user" data-controller="index" target="_self">
                                <div class="block-content text-white bg-primary-dark">
                                    <i class="fa fa-fw fa-user fa-2x"></i>
                                    <div class="font-w600 push-15-t push-15">用户</div>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END Apps Block -->
        </div>
    </div>
</div>
<!-- END Apps Modal -->
<!-- OneUI Core JS: jQuery, Bootstrap, slimScroll, scrollLock, Appear, CountTo, Placeholder, Cookie and App.js -->
<script src="/static/admin/js/core/jquery.min.js?v=20180327"></script>
<script src="/static/admin/js/core/bootstrap.min.js?v=20180327"></script>
<script src="/static/admin/js/core/jquery.slimscroll.min.js?v=20180327"></script>
<script src="/static/admin/js/core/jquery.scrollLock.min.js?v=20180327"></script>
<script src="/static/admin/js/core/jquery.appear.min.js?v=20180327"></script>
<script src="/static/admin/js/core/jquery.countTo.min.js?v=20180327"></script>
<script src="/static/admin/js/core/jquery.placeholder.min.js?v=20180327"></script>
<script src="/static/admin/js/core/js.cookie.min.js?v=20180327"></script>
<script src="/static/libs/magnific-popup/magnific-popup.min.js?v=20180327"></script>
<script src="/static/admin/js/app.js?v=20180327"></script>
<script src="/static/admin/js/dolphin.js?v=20180327"></script>
<script src="/static/admin/js/builder/form.js?v=20180327"></script>
<script src="/static/admin/js/builder/aside.js?v=20180327"></script>
<script src="/static/admin/js/builder/table.js?v=20180327"></script>
<script src="/static/libs/bootstrap-notify/bootstrap-notify.min.js?v=20180327"></script>
<script src="/static/libs/sweetalert/sweetalert.min.js?v=20180327"></script>
<script src="/static/libs/js-xss/xss.min.js?v=20180327"></script>
<script src="/static/libs/viewer/viewer.min.js?v=20180327"></script>

<!-- Page JS Plugins -->
<script src="/static/libs/layer/layer.js?v=20180327"></script>
<script src="/static/libs/jquery-ui/jquery-ui.min.js?v=20180327"></script>        <script src="/static/libs/select2/select2.full.min.js?v=20180327"></script><script src="/static/libs/select2/i18n/zh-CN.js?v=20180327"></script>        <script src="/static/libs/webuploader/webuploader.min.js?v=20180327"></script>
<script>
    jQuery(function () {
        App.initHelpers(['appear', 'slimscroll', 'magnific-popup', 'table-tools']);
        App.initHelpers(["select2"]);
    });
</script>

<!--页面js-->

<script src="/static/libs/ueditor/ueditor.config.js?v=20180327"></script>
<script src="/static/libs/ueditor/ueditor.all.min.js?v=20180327"></script>

<script>
    $("#add_spec").on('click', function () {
        var html = "<div class=\"form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 \">\n" +
            "                                                <div class=\"col-xs-3\">\n" +
            "                                                    <input class=\"form-control\" type=\"text\" name=\"spec_name[]\" placeholder=\"规格名称\">\n" +
            "                                                </div>\n" +
            "                                                <div class=\"col-xs-3\">\n" +
            "                                                    <input class=\"form-control\" type=\"text\" name=\"spec_price[]\" placeholder=\"价格\">\n" +
            "                                                </div>\n" +
            "                                                <div class=\"col-xs-2\">\n" +
            "                                                    <a href=\"javascript:void (0);\" class=\"btn btn-danger btn-sm\">删除</a>\n" +
            "                                                </div>\n" +
            "                                            </div>";
        $("#spec_list").append(html);
    });
    $("#spec_list").on('click','.btn-danger', function () {
        $(this).parents('.form-group').remove();
    })

</script>


<!--插件js钩子-->


</body>
</html>